class ApplicationController < ActionController::Base
  #  方法都在app_method里面
  include AppMethod

  protect_from_forgery with: :exception
  helper_method :current_user, :request_referer

  before_action :verify_login
  before_action :load_menu, :set_current_user, :get_unread_msg_count


  def get_unread_msg_count
    @unread_message_count = Base::Notice.received.unread.count
  end
end
